package com.woniuxy.school.dietary.from;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;

@Data
@ApiModel(description = "删除购物车信息使用的模型对象")
public class DeleteShoppingFrom {
    @NotNull(message = "菜品id不能为空")
    @Positive(message = "菜品id必须为正数")
    @ApiModelProperty(value = "菜品id")
    private Long foodId;
    @NotNull(message = "商家id不能为空")
    @Positive(message = "商家id必须为正数")
    @ApiModelProperty(value = "商家id")
    private Long storeId;


}
